//
//  MV_TableViewCell.m
//  iStock Global
//
//  Created by Andy on 2011/1/6.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//
//
//  TSO_Setup_TableViewCell.m
//  iStock Global
//
//  Created by Andy on 2010/12/11.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import "MV_TableViewCell.h"
#import "tablecellgradent.h"
#import <QuartzCore/QuartzCore.h>
@implementation MV_TableViewCell
@synthesize code;
@synthesize name;


- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    if ((self = [super initWithStyle:style reuseIdentifier:reuseIdentifier])) {
        // Initialization code
		code=[[UILabel alloc]initWithFrame:CGRectMake(10, 10, 200, 20)];
		name=[[UILabel alloc]initWithFrame:CGRectMake(150,10, 200, 20)];
		
		
		
		code.textColor=[UIColor blackColor];
		code.font=[UIFont boldSystemFontOfSize:15];
		name.textColor=[UIColor lightGrayColor];
	 	name.font=[UIFont boldSystemFontOfSize:15];		
		//讓底色透明
		name.backgroundColor=[UIColor clearColor];
		code.backgroundColor=[UIColor clearColor];
		
		
		//設定cell backgroundView 的底色漸層次 設定view tablecellgrade.h tablecellgrade.m
		//self.backgroundView = [[[tablecellgradent alloc] initWithFrame:CGRectZero] autorelease];		
		[self.contentView addSubview:name];
		[self.contentView addSubview:code];	
		
    }
    return self;
}

- (void)setPosition:(UACellBackgroundViewPosition)newPosition {	
    [(tablecellgradent *)self.backgroundView setPosition:newPosition];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
	
    [super setSelected:selected animated:animated];
	
    // Configure the view for the selected state
}


- (void)dealloc {
	[name release];
	[code release];
    [super dealloc];
}


@end
